﻿using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Filters;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace LIU.Tangtu.Web.App_Code
{
    /// <summary>
    /// 全局异常处理
    /// </summary>
    //public class GlobalExceptionFilter : IExceptionFilter
    //{
    //    public void OnException(ExceptionContext context)
    //    {
    //        context.ExceptionHandled = true;
    //        context.Result = new JsonResult(Result.Fail("系统内部错误",  ResultStatus.SysError, context.Exception.Message + "     " + context.Exception.StackTrace));
    //    }
    //}
}
